<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>用户登录</h1>
<form th:action="@{/login}" method="post">
    用户名:<input type="text" name="username"><br>
    密码:<input type="text" name="password"><br>
    验证码:<input type="text" name="code"> <img src="/validcode" alt="100" height="40"> <br>
    记住我:<input type="checkbox" name="remember-me"/>
    <span th:text="${msg}" style="color: red"></span><br>
    <span th:text="${session.msg}" style="color: red"></span><br>
    <input type="submit" value="登录">
</form>
</body>
</html>